/**
 * lilang
 * WorkInstanceDto.java
 * 2013-10-30下午3:25:34
 */
package com.cq.oa.domain.dto;

import java.util.HashMap;
import java.util.Map;


/**
 * @author lilang 流程实例dto
 *
 */
public class InstanceDto {

	private Long processInstanceId;
	
	private Long taskId;
	
	private String businessId;
	
	private Long activityId;
	
	private Long activityInstanceId;
	
	
	private Long sid;
	
	private String title;
	
	private Long type;
	
	
	private String msg;
	
	
	
	/**
	 * 下一步任务处理人    
	 * 
	 */
	private String[] nextTaskOpers;
	

	
	
	
	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String[] getNextTaskOpers() {
		return nextTaskOpers;
	}

	public void setNextTaskOpers(String[] nextTaskOpers) {
		this.nextTaskOpers = nextTaskOpers;
	}

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Long getType() {
		return type;
	}

	public void setType(Long type) {
		this.type = type;
	}

	public Long getProcessInstanceId() {
		return processInstanceId;
	}

	public void setProcessInstanceId(Long processInstanceId) {
		this.processInstanceId = processInstanceId;
	}

	public Long getTaskId() {
		return taskId;
	}

	public void setTaskId(Long taskId) {
		this.taskId = taskId;
	}

	public String getBusinessId() {
		return businessId;
	}

	public void setBusinessId(String businessId) {
		this.businessId = businessId;
	}

	public Long getActivityId() {
		return activityId;
	}

	public void setActivityId(Long activityId) {
		this.activityId = activityId;
	}

	public Long getActivityInstanceId() {
		return activityInstanceId;
	}

	public void setActivityInstanceId(Long activityInstanceId) {
		this.activityInstanceId = activityInstanceId;
	}
	
	
	public Map<String,Object> getResultMap(){
		Map<String,Object> res = new HashMap<String, Object>();
		res.put("dto.taskId", taskId);// 任务SID
		res.put("dto.businessId", businessId);// 业务SID
		res.put("dto.processInstanceId", processInstanceId);//流程实例ID
		res.put("dto.activityId", activityId);//流程节点ID
		return res;
	}
	
	
	
}
